package com.wr.service;

import com.wr.model.EmailCodeEntity;
import com.wr.utils.PageInfo;

import java.util.List;

/**
 * @ClassName: EmailService
 * @author  wurui
 * @Description:    邮箱接口
 * @date 2016-12-09
 */
public interface EmailService {

    /**
     * 根据用户邮箱查询验证码
     * @param email 用户邮箱
     * @return 返回值
     */
    EmailCodeEntity selectByEmail(String email);

    List<EmailCodeEntity> selectCodeList(PageInfo pageInfo);

    void insertEmailCode(EmailCodeEntity emailCodeEntity);

    void updateEmailCode(EmailCodeEntity emailCodeEntity);

    void deleteEmailCode(int id);

}
